<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>axios应用</title>
  <script src="../js/axios.js"></script>
  <script src="../js/qs.js"></script>
  <script src="./7-my-axios.js"></script>
  <script>
    let loginData = {
      username: 'admin1',
      password: '123321'
    }
    post_json('/user/login', loginData).then(res => {
      let token = res.data.token
      sessionStorage.setItem('token', token)

    }).catch(error => {
      console.log(error);
    })

    myget('/baseUser/findAll').then(res => {
      console.log(res.data);
    })
  </script>
</head>

<body>

</body>

</html>